//--------------------------------------------------
// EDID Type Selection
//--------------------------------------------------
#if(_D1_INPUT_PORT_TYPE == _D1_DVI_PORT)    //D1 = DVI PORT

#if((_PANEL_DH_WIDTH == 1600) || (_PANEL_DV_HEIGHT == 1200))
#define _EDID_D1_TYPE_SEL                               _EDID_DVI_1600_1200_60HZ_KEC
#else
#define _EDID_D1_TYPE_SEL                               _EDID_DVI_1920_1080_60HZ_KEC
#endif

#elif((_D1_INPUT_PORT_TYPE == _D1_HDMI_PORT) || (_D1_INPUT_PORT_TYPE == _D1_MHL_PORT))  //D1 = HDMI PORT/MHL PORT

#if(_D1_HDMI_2_0_SUPPORT == _ON)

#if(_HDMI_2_0_YCBCR420_SUPPORT == _ON)
#define _EDID_D1_TYPE_SEL                               _EDID_HDMI2_3840_2160_60HZ_NO_HFVSDB_WITH_420
#else
#define _EDID_D1_TYPE_SEL                               _EDID_HDMI2_3840_2160_60HZ_NO_HFVSDB_NO_420
#endif

#else

#if((_PANEL_DH_WIDTH == 640) && (_PANEL_DV_HEIGHT == 480))
#define _EDID_D1_TYPE_SEL                               _EDID_HDMI_640_480_60HZ_KEC
#elif((_PANEL_DH_WIDTH == 1440) && (_PANEL_DV_HEIGHT == 900))
#define _EDID_D1_TYPE_SEL                               _EDID_HDMI_1440_900_60HZ_KEC
#elif((_PANEL_DH_WIDTH == 2560) && (_PANEL_DV_HEIGHT == 1440))
#define _EDID_D1_TYPE_SEL                               _EDID_HDMI_2560_1440_60HZ
#elif((_PANEL_DH_WIDTH == 1920) && (_PANEL_DV_HEIGHT == 480))
#define _EDID_D1_TYPE_SEL                               _EDID_HDMI_1920_480_60HZ
#elif((_PANEL_DH_WIDTH == 1024) && (_PANEL_DV_HEIGHT == 768))
#define _EDID_D1_TYPE_SEL                               _EDID_HDMI_1024_768_60HZ
#elif((_PANEL_DH_WIDTH == 1280) && (_PANEL_DV_HEIGHT == 800))
#define _EDID_D1_TYPE_SEL                               _EDID_HDMI_1280_800_60HZ
#else
#define _EDID_D1_TYPE_SEL                               _EDID_HDMI_1920_1080_60HZ
#endif

#endif

#elif(_D1_INPUT_PORT_TYPE == _D1_DP_PORT)   //D1 = DP PORT

#if((_PANEL_DH_WIDTH == 3840) || (_PANEL_DV_HEIGHT == 2160))
#define _EDID_D1_TYPE_SEL                               _EDID_DP_3840_2160_60HZ_AOC
#elif((_PANEL_DH_WIDTH == 1600) || (_PANEL_DV_HEIGHT == 1200))
#define _EDID_D1_TYPE_SEL                               _EDID_DP_1600_1200_60HZ_KEC
#else
#define _EDID_D1_TYPE_SEL                               _EDID_DP_1920_1080_60HZ
#endif

#endif


//--------------------------------------------------
// EDID Table
//--------------------------------------------------
#if((_WRITE_EDID_TO_SYSTEM_EEPROM == _ON) || ((_D1_EMBEDDED_DDCRAM_MAX_SIZE != _EDID_SIZE_NONE) && (_D1_EMBEDDED_DDCRAM_LOCATION == _EDID_TABLE_LOCATION_CODE)))

BYTE code tEDID_TABLE_D1[] =
{
#if(_EDID_D1_TYPE_SEL == _EDID_DVI_1680_1050_60HZ)
#include "./EDID/EdidDvi/EDID_DVI_1680x1050@60.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_DVI_1600_1200_60HZ_KEC)    // KEC 1600X1200
#include "./EDID/EdidDvi/EDID_DVI_1600x1200@60_KEC.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_DVI_1920_1080_60HZ_KEC)    // KEC 1920x1080
#include "./EDID/EdidDvi/EDID_DVI_1920x1080@60_KEC.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_HDMI_640_480_60HZ_KEC)     // KEC 640x480
#include "./EDID/EdidHdmi/EDID_HDMI_640x480@60_KEC.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_HDMI_1440_900_60HZ_KEC)    // KEC 1440x900
#include "./EDID/EdidHdmi/EDID_HDMI_1440x900@60_KEC.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_HDMI_1920_480_60HZ)		// 1920x480
#include "./EDID/EdidHdmi/EDID_HDMI_1920x480@60_KEC.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_HDMI_1024_768_60HZ)    	// 1024x768
#include "./EDID/EdidHdmi/EDID_HDMI_1024x768@60.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_HDMI_1280_800_60HZ)    	// 1280x800
#include "./EDID/EdidHdmi/EDID_HDMI_1280x800@60.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_HDMI_1920_1080_60HZ)
#include "./EDID/EdidHdmi/EDID_HDMI_1920x1080@60.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_HDMI_1920_1080_60HZ_HDR)
#include "./EDID/EdidHdmi/EDID_HDMI_1920x1080@60_HDR.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_HDMI_1920_1080_40HZ_75HZ_WITH_VSDB_FREESYNC)
#include "./EDID/EdidHdmi/EDID_HDMI_1920x1080_FREESYNC(40,75).h"
#elif(_EDID_D1_TYPE_SEL == _EDID_HDMI_1920_1080_40HZ_120HZ_WITH_VSDB_FREESYNC)
#include "./EDID/EdidHdmi/EDID_HDMI_1920x1080_FREESYNC(40,120).h"
#elif(_EDID_D1_TYPE_SEL == _EDID_HDMI_2560_1440_60HZ)
#include "./EDID/EdidHdmi/EDID_HDMI_2560x1440@60.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_HDMI_2560_1440_60HZ_HDR)
#include "./EDID/EdidHdmi/EDID_HDMI_2560x1440@60_HDR.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_HDMI_2560_1440_40HZ_70HZ_WITH_VSDB_FREESYNC)
#include "./EDID/EdidHdmi/EDID_HDMI_2560x1440_FREESYNC(40,70).h"
#elif(_EDID_D1_TYPE_SEL == _EDID_HDMI_3840_2160_30HZ)
#include "./EDID/EdidHdmi/EDID_HDMI_3840x2160@30.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_HDMI2_3840_2160_60HZ_WITH_HFVSDB_WITH_420)
#include "./EDID/EdidHdmi/EDID_HDMI2_3840x2160@60_HFVSDB_WITH420.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_HDMI2_3840_2160_60HZ_WITH_HFVSDB_NO_420)
#include "./EDID/EdidHdmi/EDID_HDMI2_3840x2160@60_HFVSDB.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_HDMI2_3840_2160_60HZ_WITH_HFVSDB_WITH_420_HDR)
#include "./EDID/EdidHdmi/EDID_HDMI2_3840x2160@60_HFVSDB_WITH420_HDR.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_HDMI2_3840_2160_60HZ_NO_HFVSDB_WITH_420)
#include "./EDID/EdidHdmi/EDID_HDMI2_3840x2160@60_WITH420.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_HDMI2_3840_2160_60HZ_NO_HFVSDB_NO_420)
#include "./EDID/EdidHdmi/EDID_HDMI2_3840x2160@60.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_DP_1920_1080_60HZ)
#include "./EDID/EdidDp/EDID_DP_1920x1080@60.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_DP_1920_1080_60HZ_HDR)
#include "./EDID/EdidDp/EDID_DP_1920x1080@60_HDR.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_DP_1920_1080_60HZ_MACBOOK)
#include "./EDID/EdidDp/EDID_DP_1920x1080@60_MACBOOK.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_DP_1920_1080_30HZ_144HZ_FREESYNC)
#include "./EDID/EdidDp/EDID_DP_1920x1080_FREESYNC(30,144).h"
#elif(_EDID_D1_TYPE_SEL == _EDID_DP_1920_1080_50HZ_75HZ_FREESYNC)
#include "./EDID/EdidDp/EDID_DP_1920x1080_FREESYNC(50,75).h"
#elif(_EDID_D1_TYPE_SEL == _EDID_DP_2560_1440_60HZ_DELL)
#include "./EDID/EdidDp/EDID_DP_2560x1440@60_DELL.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_DP_2560_1440_60HZ_HDR)
#include "./EDID/EdidDp/EDID_DP_2560x1440@60_HDR.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_DP_2560_1440_144HZ_NIVIDIA_GTX770)
#include "./EDID/EdidDp/EDID_DP_2560x1440@144_NIVIDIA_GTX770.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_DP_3840_2160_30HZ_DELL)
#include "./EDID/EdidDp/EDID_DP_3840x2160@30_DELL.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_DP_3840_2160_60HZ_AOC)
#include "./EDID/EdidDp/EDID_DP_3840x2160@60_AOC.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_DP_3840_2160_60HZ_BENQ)
#include "./EDID/EdidDp/EDID_DP_3840x2160@60_BENQ.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_DP_3840_2160_60HZ_RTK)
#include "./EDID/EdidDp/EDID_DP_3840x2160@60_RTK.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_DP_3840_2160_60HZ_HDR)
#include "./EDID/EdidDp/EDID_DP_3840x2160@60_HDR.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_DP_5120_2880_60HZ_AMD)
#include "./EDID/EdidDp/EDID_DP_5120x2880@60_AMD.h"
#elif(_EDID_D1_TYPE_SEL == _EDID_DP_3840_2160_120HZ_AMD)
#include "./EDID/EdidDp/EDID_DP_3840x2160@120_AMD.h"
#endif
};

#endif
